<?php

class BasicForm_FieldCollectionBase extends FormFieldCollection {
    //<editor-fold defaultstate="collapsed" desc="TextField">
    /**
     * @var TextFormField
     */
    private $_TextField = null;

    /**
     *
     * @return TextFormField
     */
    public function getTextField() {
        if ($this->_TextField === null) {
            $this->_TextField = $this->AddFormField('TextField', 'TextFormField',BasicForm_Labels::TEXTFIELD,array(
                new RequiredFormFieldValidator()
            ));
            
        }
        return $this->_TextField;
    }
    //</editor-fold>        
    //<editor-fold defaultstate="collapsed" desc="TextBox">
    /**
     * @var TextFormField
     */
    private $_TextBox = null;

    /**
     *
     * @return TextFormField
     */
    public function getTextBox() {
        if ($this->_TextBox === null) {
            $this->_TextBox = $this->AddFormField('TextBox', 'TextFormField',BasicForm_Labels::TEXTBOX,array(
                new RequiredFormFieldValidator()
            ));
            $this->_TextBox->setMultiline('1');
        }
        return $this->_TextBox;
    }
    //</editor-fold>        
    //<editor-fold defaultstate="collapsed" desc="SelectField">
    /**
     * @var SelectFormField
     */
    private $_SelectField = null;

    /**
     *
     * @return SelectFormField
     */
    public function getSelectField() {
        if ($this->_SelectField === null) {
            $this->_SelectField = $this->AddFormField('SelectField', 'SelectFormField',BasicForm_Labels::SELECTFIELD,array(
                
            ));
            $this->_SelectField->setOptions(array (
  0 => '1',
  1 => '2',
  2 => '3',
  3 => '4',
  4 => '5',
  5 => '6',
))->setDefaultValue(array (
  0 => '3',
));
        }
        return $this->_SelectField;
    }
    //</editor-fold>        
    //<editor-fold defaultstate="collapsed" desc="SelectList">
    /**
     * @var SelectFormField
     */
    private $_SelectList = null;

    /**
     *
     * @return SelectFormField
     */
    public function getSelectList() {
        if ($this->_SelectList === null) {
            $this->_SelectList = $this->AddFormField('SelectList', 'SelectFormField',BasicForm_Labels::SELECTLIST,array(
                
            ));
            $this->_SelectList->setMultiple('1')->setOptions(array (
  0 => 'list1',
  1 => 'list2',
  2 => 'list3',
  3 => 'list4',
))->setDefaultValue(array (
  0 => '2',
  1 => '3',
));
        }
        return $this->_SelectList;
    }
    //</editor-fold>        
    //<editor-fold defaultstate="collapsed" desc="RadioField">
    /**
     * @var RadioFormField
     */
    private $_RadioField = null;

    /**
     *
     * @return RadioFormField
     */
    public function getRadioField() {
        if ($this->_RadioField === null) {
            $this->_RadioField = $this->AddFormField('RadioField', 'RadioFormField',BasicForm_Labels::RADIOFIELD,array(
                
            ));
            $this->_RadioField->setOptions(array (
  0 => '1',
  1 => '2',
  2 => '3',
  3 => '4',
))->setDefaultValue('3');
        }
        return $this->_RadioField;
    }
    //</editor-fold>        
    //<editor-fold defaultstate="collapsed" desc="CheckboxField">
    /**
     * @var CheckboxFormField
     */
    private $_CheckboxField = null;

    /**
     *
     * @return CheckboxFormField
     */
    public function getCheckboxField() {
        if ($this->_CheckboxField === null) {
            $this->_CheckboxField = $this->AddFormField('CheckboxField', 'CheckboxFormField',BasicForm_Labels::CHECKBOXFIELD,array(
                
            ));
            $this->_CheckboxField->setOptions(array (
  0 => '1',
  1 => '2',
  2 => '3',
  3 => '4',
))->setDefaultValue(array (
  0 => '2',
  1 => '3',
));
        }
        return $this->_CheckboxField;
    }
    //</editor-fold>        
    //<editor-fold defaultstate="collapsed" desc="DateTimePickerField">
    /**
     * @var DateTimePickerFormField
     */
    private $_DateTimePickerField = null;

    /**
     *
     * @return DateTimePickerFormField
     */
    public function getDateTimePickerField() {
        if ($this->_DateTimePickerField === null) {
            $this->_DateTimePickerField = $this->AddFormField('DateTimePickerField', 'DateTimePickerFormField',BasicForm_Labels::DATETIMEPICKERFIELD,array(
                
            ));
            
        }
        return $this->_DateTimePickerField;
    }
    //</editor-fold>        
    public function Create() {
        $this->getTextField();
        $this->getTextBox();
        $this->getSelectField();
        $this->getSelectList();
        $this->getRadioField();
        $this->getCheckboxField();
        $this->getDateTimePickerField();
        $this->getSubmitButton();
        $this->getResetButton();
        return parent::Create();
    }
}